bd88949496cbad314fad8f22aa5a25230a142a58,app/src/main/java/com/linguaculturalists/phoenicia/ui/DecorationPlacementHUD.java,DecorationPlacementHUD,DecorationPlacementHUD,#PhoeniciaGame#,58
Before Change
final int cost = currentDecoration.buy * (int)Math.pow(costMultiplier, Assets.getInsance().getDecorationTileCount(currentDecoration));
final Text purchaseCost = new Text((card.getWidth()/2)+20, card.getHeight()*1/3, GameFonts.inventoryCount(), String.valueOf(cost), String.valueOf(cost).length(), PhoeniciaContext.vboManager);
card.attachChild(purchaseCost);
final Sprite coinIcon = new Sprite(purchaseCost.getX()-(purchaseCost.getWidth()/2)-20, purchaseCost.getY()+2, phoeniciaGame.shellTiles.getTextureRegion(GameTextures.COIN_ICON), PhoeniciaContext.vboManager);
card.attachChild(coinIcon);
After Change
if (phoeniciaGame.locale.isLevelReached(currentDecoration.level, phoeniciaGame.current_level)) {
final int cost = currentDecoration.buy * (int)Math.pow(costMultiplier, Assets.getInsance().getDecorationTileCount(currentDecoration));
final Text purchaseCost = new Text((card.getWidth()/2)+20, card.getHeight()*1/3, GameFonts.inventoryCount(), String.valueOf(cost), String.valueOf(cost).length(), PhoeniciaContext.vboManager);
card.attachChild(purchaseCost);
final Sprite coinIcon = new Sprite(purchaseCost.getX()-(purchaseCost.getWidth()/2)-20, purchaseCost.getY()+2, phoeniciaGame.shellTiles.getTextureRegion(GameTextures.COIN_ICON), PhoeniciaContext.vboManager);
card.attachChild(coinIcon);
} else {
block.setEnabled(false);
final Text levelName = new Text((card.getWidth()/2)+20, card.getHeight()*1/3, GameFonts.inventoryCount(), currentDecoration.level, currentDecoration.level.length(), PhoeniciaContext.vboManager);
card.attachChild(levelName);
final Sprite levelIcon = new Sprite(levelName.getX()-(levelName.getWidth()/2)-20, levelName.getY()+2, phoeniciaGame.shellTiles.getTextureRegion(GameTextures.LEVEL_ICON), PhoeniciaContext.vboManager);
card.attachChild(levelIcon);
}